-- GENERATED SPELL FOR [Onslaught Deckhand] --


function spell0_27233(pUnit, Event) --@Side Kick,n/a--
pUnit:FullCastSpellOnTarget(50854,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_27233', 5281, 1)
end

function Sorts_27233(pUnit, Event)
local choix_sorts_27233 = math.random(0, 0)
if choix_sorts_27233 == 0 then
pUnit:RegisterEvent('spell0_27233', 1, 1)
end
end

function mob27233_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_27233', math.random(1500, 3000), 1)
end

function mob27233_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob27233_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob27233_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(27233, 1, 'mob27233_Action')
RegisterUnitEvent(27233, 2, 'mob27233_Leave')
RegisterUnitEvent(27233, 3, 'mob27233_Kill')
RegisterUnitEvent(27233, 4, 'mob27233_Die')
